package com.thousandsunny.userInterface;


import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import static org.springframework.web.bind.annotation.RequestMethod.GET;

/**
 * @author Savitar
 */
@RequestMapping("user")
@FeignClient("PRODUCER")
public interface UserInterface {

    @RequestMapping(value = "id", method = GET)
    Integer userDetail(@RequestParam("id") Integer id);

}
